package com.aaa.reflect;

import com.aaa.dao.MyDao;
import com.aaa.dao.impl.MyDaoImpl;
import com.aaa.entity.Dept;

/**
 * @author ：Teacher陈（86521760@qq.com）
 * @date ：Created in 2022/8/19 11:02
 * @description：
 * @modified By：
 * @version:
 */
public class DaoTest {
    public static void main(String[] args) throws Exception {
      /*  Person person = new Person(100,"zhangsan",38);
        MyDao<Person> myDao = new MyDaoImpl();
        myDao.saveEntity(person);*/
      Dept dept = new Dept(199,"qy38","郑州");
      MyDao<Dept> deptMyDao = new MyDaoImpl<Dept>();
      deptMyDao.saveEntity(dept);

    }
}
